define(['../../../../../js/lib/other/sweet-alert'],function() {
    return ['$scope','$location', '$interval','$timeout','$routeParams','bizProxy', function($scope,$location,$interval,$timeout,$routeParams,bizProxy) {
		$scope.$emit("top-show",'true');//顶部显示
    	$scope.$emit('menuTypeLight','mine'); 	//控制底部menu高亮
    	$scope.$emit('bub-menu','true'); 	//隐藏底部menu
    	$scope.$emit('flag-tag','44');//显示底部文字
    	
    	//0待审核；1已通过；8已驳回；9已取消
    	if($routeParams.flag != "" && $routeParams.flag != null){
    		queryCaseReleaseOutline($routeParams.flag);
    	}
    	
    	//代理接口查询的发布详情
    	function queryCaseReleaseOutline(id){
    		$scope.$emit("loadingChangeNav",true);
    		var headerInfo = {},bizInfo = {};
        	headerInfo.pageNum =  '';
	       	headerInfo.pageSize = '';
        	headerInfo.sessionId = transData.sessionId;
    		bizInfo.caseId = id;
    		
    		bizProxy.queryProxyBizData("queryCaseDetail",headerInfo,bizInfo,
    				function(tempData){
		    			$timeout(function(){
		    				$scope.$emit('loadingChangeNav', false);
		    				resultData.caseDetailData = "";
    						resultData.caseDetailData = JSON.parse(tempData.body);
		    				$scope.caseDetailData = resultData.caseDetailData;
						},0);
		    		},function(data){
		    			$scope.$emit('loadingChangeNav', false);
		    			$scope.$emit("promptAlertMsg",data);
		    			$scope.$emit("showCollect",true);
		    			$timeout(function(){
		    				$scope.$emit("showCollect",false);
		    				history.back();
		    			},transData.promptTime);
		    		});
    	}
        $scope.$apply();
    }];
});